<?php if (!defined('THINK_PATH')) exit();?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>

<link href="/123/application/Public/Admin/Images/css1/css.css" rel="stylesheet" type="text/css">
<link href="/123/application/Public/Admin/css/page.css" rel="stylesheet" type="text/css">
<style>
td,th {
	text-align: center
}
</style>
</head>
<SCRIPT language=javascript>
<!--
	var displayBar = true;
	function switchBar(obj) {
		if (displayBar) {
			parent.frame.cols = "0,*";
			displayBar = false;
			obj.value = "打开左边管理菜单";
		} else {
			parent.frame.cols = "195,*";
			displayBar = true;
			obj.value = "关闭左边管理菜单";
		}
	}

	function fullmenu(url) {
		if (url == null) {
			url = "admin_left.asp";
		}
		parent.leftFrame.location = url;
	}
        function del(){
            if(confirm('确定删除吗')){
                location.href='/123/index.php/Admin/Brand/deleteAll';
            }
        }
//-->
</SCRIPT>



<body>
	<form method='post' action='/123/index.php/Admin/Brand/deleteAll'>
		<table class="table" cellspacing="1" cellpadding="2" width="99%"
			align="center" border="0">
			<tbody>
				<tr>
					<th class="bg_tr" align="left" height="25">序号</th>
					<th class="bg_tr" align="left" height="25">品牌名</th>
					<th class="bg_tr" align="left" height="25">品牌描述</th>
					<th class="bg_tr" align="left" height="25">顶级分类</th>
					<th class="bg_tr" align="left" height="25">修改</th>
					<th class="bg_tr" align="left" height="25">
				
			  <input type='submit' name='deleteSubmit' value='删除' onclick="del()"/>
		<input type='hidden' name='p' value='<?php echo ($p); ?>'/>
		     
					</th>
				</tr>
		<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>		
					<td class="td_bg" width="5%" height="23" align="center"><?php echo ($i); ?></td>
					<td class="td_bg"  style='text-align:left;padding-left:10px;'>
						<?php if($vo['cid'] > 0): echo ($vo["name"]); endif; ?>
						 <?php if($vo['cid'] == 0): ?><p>--</p><?php endif; ?>
					</td>
					<td class="td_bg">
					<?php if($vo["cid"] > 0): echo ($vo["content"]); endif; ?>			
	                 <?php if($vo['cid'] == 0): ?><p>--</p><?php endif; ?>
					</td>
					<td class="td_bg">
					<?php echo ($vo["cate"]["name"]); ?>
					<?php if($vo['cid'] == 0): ?><b>--</b><?php endif; ?>
					</td>
					<td class="td_bg">	
						<?php if($vo['cid'] > 0): ?><a href="/123/index.php/Admin/Brand/edit/p/<?php echo ($p); ?>/id/<?php echo ($vo["id"]); ?>">修改</a><?php endif; ?>
						<?php if($vo['cid'] == 0): ?><p>--</p><?php endif; ?>
					</td>
					<td class="td_bg">
					<?php if($vo["cid"] > 0): ?><input type='checkbox' value="<?php echo ($vo["id"]); ?>" name='id[]' /><?php endif; ?>
					<?php if($vo["cid"] == 0): ?>--<?php endif; ?>
					</td>
					
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
				<tr>
					<td colspan="6"><div class="badoo"><?php echo ($show); ?></div></td>
				</tr>
			</tbody>
		</table>
	</form>
</body>
</html>